\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}{
\section{Zebulon::CoralAHRS::Configuration Class Reference}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}\index{Zebulon::CoralAHRS::Configuration@{Zebulon::CoralAHRS::Configuration}}
}


This packet is sent in reponse to a CORAL REQUEST CONFIGURATION packet. It returns the current serial speed setting, output mode, and output rate divisor. The output mode setting is 1 for CORAL QUAT output mode, 2 for CORAL SENSORS output mode, 3 for (CORAL SENSORS $|$ CORAL QUAT) output mode, 4 for CORAL RAW SENSORS, and 0 for no output. The serial speed setting corresponds to an actual baud rate according to the following chart:
\begin{DoxyItemize}
\item 0 = 4800
\item 1 = 9600
\item 2 = 19200
\item 3 = 38400
\item 4 = 57600
\item 5 = 115200
\item 6 = 230400
\item 7 = 460800. 
\end{DoxyItemize} 


{\ttfamily \#include $<$configuration.h$>$}Inheritance diagram for Zebulon::CoralAHRS::Configuration::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a779947337bf652f0e773cb29f37f14ba}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a779947337bf652f0e773cb29f37f14ba}{Configuration} ()}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a779947337bf652f0e773cb29f37f14ba}

\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a1dda5b79d97a67668eb1661cc35a8b15}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a1dda5b79d97a67668eb1661cc35a8b15}{Configuration} (const \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}{Configuration} \&message)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a1dda5b79d97a67668eb1661cc35a8b15}

\begin{DoxyCompactList}\small\item\em Copy constructor. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a0dd0fa189e239f4c9a036303f641441e}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a0dd0fa189e239f4c9a036303f641441e}{$\sim$Configuration} ()}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a0dd0fa189e239f4c9a036303f641441e}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a58b5e07d651cccc81f4fb9ed29f8c4c2}{WriteMessageBody} (CxUtils::Packet \&packet) const 
\begin{DoxyCompactList}\small\item\em Writes contents of message body to packet. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a8ee85aba52aa43b13cac97862d1ee206}{ReadMessageBody} (const CxUtils::Packet \&packet)
\begin{DoxyCompactList}\small\item\em Reads contents of message body from the packet, saving to internal data members. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a5af8231e6230f3c7cdb99c30b5545459}{
virtual \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Message} $\ast$ {\bfseries Clone} () const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a5af8231e6230f3c7cdb99c30b5545459}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a4179ab18e659258c6e8ebfdf70c239eb}{
virtual void \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a4179ab18e659258c6e8ebfdf70c239eb}{Print} () const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a4179ab18e659258c6e8ebfdf70c239eb}

\begin{DoxyCompactList}\small\item\em Prints data to console window. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_ac5450c95e34c34d54f54708d33f7d83e}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}{Configuration} \& \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_ac5450c95e34c34d54f54708d33f7d83e}{operator=} (const \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration}{Configuration} \&message)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_ac5450c95e34c34d54f54708d33f7d83e}

\begin{DoxyCompactList}\small\item\em Sets equal to. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a98051b3ef7879c2b8139b18d3aa6107d}{
unsigned char {\bfseries mSerialSpeed}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a98051b3ef7879c2b8139b18d3aa6107d}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_ae5c0424e860ea5d36c72be24d755bf2d}{
unsigned char {\bfseries mOutputMode}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_ae5c0424e860ea5d36c72be24d755bf2d}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a3d9db4e7abb85721e2d05a9315355c29}{
unsigned char {\bfseries mOutputRateDivisor}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a3d9db4e7abb85721e2d05a9315355c29}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This packet is sent in reponse to a CORAL REQUEST CONFIGURATION packet. It returns the current serial speed setting, output mode, and output rate divisor. The output mode setting is 1 for CORAL QUAT output mode, 2 for CORAL SENSORS output mode, 3 for (CORAL SENSORS $|$ CORAL QUAT) output mode, 4 for CORAL RAW SENSORS, and 0 for no output. The serial speed setting corresponds to an actual baud rate according to the following chart:
\begin{DoxyItemize}
\item 0 = 4800
\item 1 = 9600
\item 2 = 19200
\item 3 = 38400
\item 4 = 57600
\item 5 = 115200
\item 6 = 230400
\item 7 = 460800. 
\end{DoxyItemize}

\subsection{Member Function Documentation}
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a8ee85aba52aa43b13cac97862d1ee206}{
\index{Zebulon::CoralAHRS::Configuration@{Zebulon::CoralAHRS::Configuration}!ReadMessageBody@{ReadMessageBody}}
\index{ReadMessageBody@{ReadMessageBody}!Zebulon::CoralAHRS::Configuration@{Zebulon::CoralAHRS::Configuration}}
\subsubsection[{ReadMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int Configuration::ReadMessageBody (const CxUtils::Packet \& {\em packet})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a8ee85aba52aa43b13cac97862d1ee206}


Reads contents of message body from the packet, saving to internal data members. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]The packet to read data from.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of bytes read from packet. 
\end{DoxyReturn}


Implements \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Zebulon::CoralAHRS::Message}.\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a58b5e07d651cccc81f4fb9ed29f8c4c2}{
\index{Zebulon::CoralAHRS::Configuration@{Zebulon::CoralAHRS::Configuration}!WriteMessageBody@{WriteMessageBody}}
\index{WriteMessageBody@{WriteMessageBody}!Zebulon::CoralAHRS::Configuration@{Zebulon::CoralAHRS::Configuration}}
\subsubsection[{WriteMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int Configuration::WriteMessageBody (CxUtils::Packet \& {\em packet}) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_configuration_a58b5e07d651cccc81f4fb9ed29f8c4c2}


Writes contents of message body to packet. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]The packet to write data to.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of bytes written to packet. 
\end{DoxyReturn}


Implements \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Zebulon::CoralAHRS::Message}.

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/coralahrs/include/coralahrs/messages/\hyperlink{configuration_8h}{configuration.h}\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/coralahrs/src/coralahrs/messages/\hyperlink{configuration_8cpp}{configuration.cpp}\end{DoxyCompactItemize}
